package cn.yunhe.service.impl;

import cn.yunhe.dao.MenuItemDao;
import cn.yunhe.service.MenuItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("menuItemService")
public class MenuItemServiceImpl implements MenuItemService {

    @Resource
    private MenuItemDao menuItemDao;

    @Override
    public List<String> getUserMenu(int roleId) {
        return menuItemDao.getUserMenu(roleId);
    }

    public MenuItemDao getMenuItemDao() {
        return menuItemDao;
    }

    public void setMenuItemDao(MenuItemDao menuItemDao) {
        this.menuItemDao = menuItemDao;
    }
}
